SET APP_NAME=go-http-server
:: go install github.com/mitchellh/gox@latest
:: gox -build-toolchain
:: gox -osarch="windows/amd64 linux/amd64" -ldflags "-s -w"
gox -osarch="linux/amd64" -ldflags "-s -w"
del %APP_NAME%
ren %APP_NAME%_linux_amd64 uid-%APP_NAME%
:: 执行压缩 
docs\upx --best uid-%APP_NAME%

pause
